<?php
class Questions extends CI_Controller {

	public function __construct()
	{
		parent::__construct();
		$this->load->model('questions_model');
	}
    
    public function index()
    {
        $questions = $this->questions_model->getQuestions(LIMIT_QUESTIONS_LISTING, 0);
        // echo '<pre>';print_r($questions);echo '</pre>';
        $data['data']['questions'] = $questions;
        $data['view'] = 'questions';
        $this->load->view(LAYOUT.'/main', $data);
    }
}